import {handleActions} from 'redux-actions'
import {GET_SUBJECTS} from '../types/index'

export default handleActions({
  [GET_SUBJECTS](state,action) {
    return {
      ...state,
      list: action.payload
    }
  }
}, {
  list: [],
})
